﻿<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Functional_Area_Master.aspx.cs"
    Inherits="tools_Functional_Area_Master" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 141px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMainBody" runat="Server">
    <table class="style1">
        <tr>
            <td valign="bottom" class="leftheading" colspan="2" align="left">
                <img src="images/headingbullet.gif" width="14" height="14">
                FUNCTIONAL AREA MASTER
            </td>
        </tr>
        <tr>
            <td class="leftsectionunderline" colspan="2">
                <img src="images/spacer.gif" width="1" height="1">
            </td>
        </tr>
        <tr>
            <td class="tdstyle">
                Functional Area Name
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtfunctionalareaname" runat="server">
                </asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style2">
                &nbsp;
            </td>
            <td class="tdstyle">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style2">
                <asp:Button class="CSSButton" ID="btnfunctionalareasave" runat="server" OnClick="btnfunctionalareasave_Click"
                    Text="Save Functional Area" />
            </td>
            <td class="tdstyle">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="tdstyle">
                &nbsp;
            </td>
            
            <td class="tdstyle" >
                <asp:GridView ID="grdFuntionalArea" runat="server" CssClass="griddiv" CellPadding="4" AutoGenerateColumns="false"
                    ForeColor="Black" GridLines="Horizontal" AllowPaging="True" OnPageIndexChanging="grdFuntionalArea_PageIndexChanging"
                    OnRowCommand="grdFuntionalArea_RowCommand" OnRowDataBound="grdFuntionalArea_RowDataBound">
                    <Columns>
                        <asp:TemplateField ItemStyle-CssClass="griditem" HeaderText="Edit/Delete" ItemStyle-Width="150px">
                            <ItemTemplate>
                                <asp:ImageButton ID="lnkEdit" ImageUrl="~\images\Edit.jpg" Height="20px" CommandName="Edt"
                                    CommandArgument='<%# Eval("ID") %>' runat="server" AlternateText="Edit"></asp:ImageButton>
                                <asp:ImageButton ID="lnkDelete" ImageUrl="~\images\delete.jpg" Height="20px" CommandName="Del"
                                    CommandArgument='<%# Eval("ID") %>' runat="server" AlternateText="Delete"></asp:ImageButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="FUNCTIONAL_AREA" HeaderText="Funtional Area" />
                    </Columns>
                    <PagerStyle CssClass="pagingstyle" />
                    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True"  />
                    <HeaderStyle CssClass="greedhead" Font-Bold="True" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
